public class Simulator {
    public void playSound(Animal animal)
    {

        System.out.print(animal.getAnimalName()+"的声音是：");
        animal.cry();
    }
}
